package com.ll.common;


import com.ll.utils.Result;
import org.springframework.web.bind.annotation.ExceptionHandler;
import org.springframework.web.bind.annotation.RestControllerAdvice;

@RestControllerAdvice
public class GlobalExceptionHandler {

    /**
     * 未登录处理
     * @param e
     * @return
     */
    @ExceptionHandler(AccessDeniedEception.class)
    public Result handleAccessDeniedEception(AccessDeniedEception e) {
        return Result.error(MessageConstant.NOT_LOGIN);
    }

}
